package org.example.myleet.p1592;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("this   is   a   sentence".equals(solution.reorderSpaces("  this   is  a sentence ")));
        Assert.isTrue("practice   makes   perfect ".equals(solution.reorderSpaces(" practice   makes   perfect")));
        Assert.isTrue("hello   world".equals(solution.reorderSpaces("hello   world")));
        Assert.isTrue("walks  udp  package  into  bar  a ".equals(solution.reorderSpaces("  walks  udp package   into  bar a")));
        Assert.isTrue("a".equals(solution.reorderSpaces("a")));
        Assert.isTrue("a  ".equals(solution.reorderSpaces("  a")));
    }
}
